<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich">
    <h:form>
        <h:outputLabel value="审批级次"  />
        <h:panelGrid columns="2" columnClasses="top , top">            
            <rich:extendedDataTable value="#{checkFlowBean.levellist}" var="cap" id="table"
                                    sortMode="single" style="width:100px;max-height:180px;"
                                    selectionMode="single" selection="#{checkFlowBean.levelselection}">
                <rich:column>
                    <f:facet name="header">级次</f:facet>
                    <h:outputText value="#{cap.level}级" />
                </rich:column>
                <a4j:ajax render="selectiontable" listener="#{checkFlowBean.takeSelection_model}"
                          event="selectionchange"/>
            </rich:extendedDataTable>
            <a4j:commandLink value="增加" action="#{checkFlowBean.add}" style="float:left;margin-right:30px;" render="table" />
            <a4j:commandLink value="删除" render="table" action="#{checkFlowBean.remove}" />
        </h:panelGrid>
    </h:form>
</ui:composition>
